package com.zsc.yygh.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zsc.yygh.model.order.OrderInfo;
import com.zsc.yygh.vo.order.OrderCountQueryVo;
import com.zsc.yygh.vo.order.OrderQueryVo;
import com.zsc.yygh.vo.order.OrderVo;
import org.mapstruct.Mapping;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

public interface OrderService extends IService<OrderInfo> {

    //生成挂号订单
    Long saveOrder(String scheduleId, Long patientId);

    //根据订单id查询订单详情
    OrderInfo getOrder(String orderId);

    //订单列表（条件查询带分页）
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    //取消预约
    Boolean cancelOrder(Long orderId);

    //就诊通知
    void patientTips();

    //预约统计
    Map<String,Object> getCountMap(OrderCountQueryVo orderCountQueryVo );

    //订单统计
    public Map<String, Object>  getOderMap(OrderCountQueryVo orderCountQueryVo);

    //已支付统计
    public Map<String,Object> getOderPl(OrderCountQueryVo orderCountQueryVo);

    //未支付统计
    public Map<String,Object> getOderYPl(OrderCountQueryVo orderCountQueryVo);
    //void test2();
}
